﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        public object Pesponse { get; private set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            string userName = Request.Params["userName"];
            string Password = Request.Params["Password"];

            Response.Write($"<h1>登录成功欢迎{userName}，您的密码是{Password}<h1>");

            string userName1 = "";
            string Password1 = "";

            if (PreviousPage != null) 
            {
                TextBox userNameBox = (TextBox)PreviousPage.FindControl("userName");
                userName1 = userNameBox.Text;
            }
            if (PreviousPage != null) 
            {
                TextBox PasswordBox = (TextBox)PreviousPage.FindControl("Passwoed");
                Password1 = PasswordBox.Text;
            }
            Response.Write($"Previous ==> <h1>登录成功欢迎 {userName},{Password}</h1>");
        }
    }
}